﻿@model IEnumerable<Sprint1.Models.Answer>
<div id="Answers" style="background-color: Silver">
    @foreach (var item in Model)
    { <div id="answer" style="border:1px solid black">

        @if (item.isInstructor)
        {
            @Html.LabelFor(model => item.Instructor.Name)     <b>: Instructor Answer</b>
        }
        else
        {
            @Html.LabelFor(model => item.Student.Name)
        }
        @Html.LabelFor(model => item.Date)

        <div>
            @Html.DisplayFor(model => item.Body) @* ,5*@
        </div>
    </div>
    }

</div>